package com.spring.controller;

import com.spring.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.HttpRequestHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.lang.annotation.Retention;
@Controller
public class HelloController {
    //逻辑视图名
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }


    @RequestMapping("hello4")
    public String hello4(User user){
        return "hello4";
    }

}
